<?php

/*
 * |--------------------------------------------------------------------------
 * | Web Routes，用户系统
 * |--------------------------------------------------------------------------
 * |
 * | Here is where you can register web routes for your application. These
 * | routes are loaded by the RouteServiceProvider within a group which
 * | contains the "web" middleware group. Now create something great!
 * |
 */

Route::group([
    'prefix' => 'oauth',
    'namespace' => 'Web\Oauth'
], function () {
    //入口
    Route::get('', 'IndexController@index')->name('oauth.index');
    //登录
    Route::get('login', 'IndexController@login')->name('oauth.login');
    //注册
    Route::get('regist', 'IndexController@regist')->name('oauth.regist');
    //退出
    Route::get('logout', 'IndexController@logout')->name('oauth.logout');
    //找回密码
    Route::get('getbackPassword', 'IndexController@getbackpassword')->name('oauth.getbackpassword');
    //验证码-可以不用调用该链接，直接使用验证码插件函数
    Route::get('numcode', 'IndexController@numCode')->name('oauth.numcode');
    //设置用户类型
    Route::get('userType', 'UserController@userType')->name('oauth.usertype');

    //第3方登录
    Route::get('authorLogin', 'AuthorController@login')->name('oauth.authorlogin');
    //QQ回调地址
    Route::get('qqCallback', 'AuthorController@qqCallback')->name('oauth.qqcallback');
    //微信回调地址
    Route::get('wechatCallback', 'AuthorController@wechatCallback')->name('oauth.wechatcallback');


    //提供给用户系统用，跳转到TP的链接
    //头像设置
    Route::get('plus_avatar', 'PlusUserController@avatar')->name('plus.avatar');
    //个人中心
    Route::get('plus_centor', 'PlusUserController@centor')->name('plus.centor');
    //设置
    Route::get('plus_setting', 'PlusUserController@setting')->name('plus.setting');
    //修改密码
    Route::get('plus_password', 'PlusUserController@password')->name('plus.password');


    Route::get('/test', 'IndexController@test');
});